Page({
  data: {},
  onLoad(e) {
    this.initGoods(e.query);
  },
  initGoods(query?: string) {
    const name = query || "创维";
    const goods = this.selectComponent("#goods");
    goods.data.query = query;
    goods.initGoods(name);
  },
});
